Some programs are debugging, compatibility, in situations like platform porting, you might want to generate a different software by simply setting some parameters, which, of course, can be done with variable settings, write all the possible code,
The pre-processing process scans the source code and performs initial conversion to generate new source code for the compiler. It can be seen that the preprocessing process processes the source code prior to the compiler.
In C language, there is
Some programs in debugging, compatibility, platform porting and so on may want to create a different software by simply setting some parameters, this can of course, through the variable settings, all the code can be used to write in the
The preprocessing process scans the source code, makes a preliminary conversion, and generates a new source for the compiler. The preprocessing process can be seen before the source code is processed by the compiler.In the C language, there is no
Time: 2014.07.01
Location: Base
----------------------------------------------------------------------------
I. Pre-processing details before compiling conditions, first understand the pre-processing process. The pre-processing process reads the
Conditional compilation of pre-processing commands (# ifdef, # else, # endif, # If, etc)
Preprocessing is the work done before the first lexical scan and syntax analysis of compilation. To put it bluntly, it is to process the preprocessing part
Preprocessing is the work done prior to the first lexical scan and parsing of the compilation. To be blunt, the preprocessing part is processed before the source file is compiled, and then the processed code is compiled. The advantage of this is
Reprint: http://blog.chinaunix.net/uid-26854432-id-3181585.html #if语句
#if语句会计算它后面的表达式, and checks the result of the expression, if the result is true (true), the subsequent statement is compiled, and if False (false), the subsequent statement is
Original articles, reproduced please indicate the source, thank you.Author: Qing Lin, blog name: Flying Air and static crossing
#if语句
#if语句会计算它后面的表达式, and checks the result of the expression, if the result is true (true), the subsequent statement
Preprocessor commands are very powerful and are used extensively during programming, such as easy to use in version release, 1, #define (tells the compiler that there is a symbol for the given name) #undefine (delete symbol) 2,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.